@include('parent')
<style type="text/css">
  .pagination{
      float:right;
    }
    .pagination li{
      float:left;
      width:25px;
      height:25px;
      border:1px solid gray;
      text-align: center;
      line-height: 25px;
      margin:1px;
    }
    .active{
      background: #bbbbbb;
    }
</style>
     <section class="rt_wrap content mCustomScrollbar" id="div">
     <div style="margin-left:15%; width:80% ">
      <h2><strong style="color:grey;">汽车车系列表</strong></h2>
      <table border="1" class="table">
        <tr>
          <td>编号</td>
          <td>品牌名称</td>
          <td>汽车数量</td>
          <td>操作</td>
        </tr>
        <tr>
          <td>{{$carid}}</td>
          <td>{{$carname}}</td>
          <td>------</td>
          <td>------</td>
        </tr>
        @foreach($rows as $r)
        <tr>
          <td>{{$r->cate_id}}</td>
          <td>&nbsp&nbsp&nbsp&nbsp{{$r->cate_name}}</td>
          <td>
          @if(! empty($num[$r->cate_id]))
          {{$num[$r->cate_id]}}
          @else
          0
          @endif
          </td>
          <td>
          <a href="{{url('catedit',[$r->cate_id])}}">编辑</a>|
          <a href="{{url('catedel',[$r->cate_id])}}">删除</a>
          </td>
        </tr>
        @endforeach
      </table>  

      {!! $rows->render() !!}
      <a href="{{url('catelist')}}">返回品牌列表</a>

      </section>

       